<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/js/jquery-3.3.1.min.js"></script>
    <script>

        function orient(e)
        {
            alert(window.orientation);
        }

        $(window).bind("orientationchange",orient);
    </script>
</head>
<body>

</body>
</html>